import java.util.Scanner;

public class Main1244 {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        int a=0;
        while (n%2==0){
            n=n/2;
            a++;
        }
        System.out.println(a);
    }
}
